package cn.xiaosiyuan.comprehensive;

import com.oneheart.xp.framework.controller.service.impl.AbsListService;
import com.oneheart.xp.framework.util.UtilPub;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Test20201030 {
    public static void main(String[] args) {

        List<Map<String, Object>> list = new ArrayList<>();
        Map<String, Object> map = new HashMap<>();
        map.put("1","1");
        map.put("2","2");
        map.put("3","3");
        map.put("4","4");
        map.put("5","5");
        map.put("6","6");
        map.put("7","7");

        list.add(map);

        List<Map<String, Object>> finalList = new ArrayList(2);
        List<Map<String, Object>> footerList =list;
        if (UtilPub.isNotEmpty(footerList)) {
            finalList.addAll(footerList);
        }
        finalList.forEach(stringObjectMap -> {
            System.out.println(stringObjectMap.toString());
        });
    }
}
